package com.huarui.companypackage.model;

import java.util.Date;

import org.ewaf.framework.model.BaseDataObject;

/**
 * Create Table buyPackage (                                    -- 购买套餐
  id                        Int AUTO_INCREMENT  Primary Key ,     -- 主键
  code                      varChar ( 10 ) NOT NULL  ,            -- 套餐编号
  companyId                 Int NOT NULL  ,                       -- 公司ID
  packageId                 Int NOT NULL  ,                       -- 套餐ID
  gmtCreate                 DateTime NOT NULL  ,                  -- 创建时间
  status                    Int NOT NULL  ,                       -- 状态（0=未支付，1=已支付）
  gmtPay                    DateTime                              -- 支付时间
);

 * @author xzz
 *
 */
public class BuyPackage extends BaseDataObject{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3810709277046455338L;
    public static final int TO_PAY = 0;
    public static final int HAS_PAID = 1;
	private Integer id;
	
	private String code;
	
	private Integer companyId;
	
	private Integer packageId;
	
	private Date gmtCreate;
	
	private Integer status;
	
	private Date gmtPay;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Integer getPackageId() {
		return packageId;
	}

	public void setPackageId(Integer packageId) {
		this.packageId = packageId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtPay() {
		return gmtPay;
	}

	public void setGmtPay(Date gmtPay) {
		this.gmtPay = gmtPay;
	}

}
